﻿@{
    ViewBag.Title = "customerMessage";
}

<style type="text/css">
    .aa {
        background-color: #808080;
        height: 50px;
        line-height: 50px;
        text-align: center;
    }

    td {
        text-align: center;
    }

    th {
        width: 180px;
    }
</style>
<form action="#" method="post">
    <table border="1" cellspacing="0">
        <tr>
            <th colspan="7">
                <h2 class="aa">客户信息列表</h2>
            </th>
        </tr>
        <tr>
            <th>客户姓名</th>
            <th>性别</th>
            <th>Email</th>
            <th>地址</th>
            <th>电话</th>
            <th>操作</th>
        </tr>
       @foreach (var item in ViewBag.tt)
       {
           <tr>      
            <td>@item.InfoName</td>
            <td>@(item.InfoSex==1?"男":"女")</td>
            <td>@item.InfoMail</td>
            <td>@item.InfoAddress</td>
            <td>@item.InfoPhone</td>
            <td><a href="/Admin/AdminUpdateCustomer?UserId=@item.UserId">@(item.UserState==1?"正常":"禁用")</a></td>
        </tr>
       }      
    </table>
</form>

